@ layout("/common/_layout.html"){
  <h2 class="page-title">发表问题</h2>
  <!-- <div class="fly-none">并无权限</div> -->
  <div class="layui-form layui-form-pane">
    <form action="${ctxPath}/topic/update" method="post">
    <input type="hidden" name="topic.id" value="${topic.id }"/>
      <div class="layui-form-item">
        <label for="L_title" class="layui-form-label">标题</label>
        <div class="layui-input-block">
          <input type="text" id="L_title" name="topic.title" value="${topic.title!}" required lay-verify="required" autocomplete="off" class="layui-input">
        </div>
      </div>
      @ include("/common/_editer.html", {"textarea_name" : "topic.content", "textarea_content" : topic.content!}){}
      <div class="layui-form-item">
        <div class="layui-inline">
          <label class="layui-form-label">所在类别</label>
          <div class="layui-input-block">
            <select lay-verify="required" name="topic.moduleID">
                @ for(vv in moduleList!){
		            <option value="${vv.id}" ${isSame(vv.id!, topic.moduleID!, "selected='selected'")}>${vv.name!}</option>
		        @ }
            </select>
          </div>
        </div>
        <div class="layui-inline">
          <label class="layui-form-label">悬赏飞吻</label>
          <div class="layui-input-block">
            <select name="topic.point">
              <option value="0" ${isSame(0, topic.point!, "selected='selected'")}>无悬赏</option>
              <option value="5" ${isSame(5, topic.point!, "selected='selected'")}>5</option>
              <option value="20" ${isSame(20, topic.point!, "selected='selected'")}>20</option>
              <option value="50" ${isSame(50, topic.point!, "selected='selected'")}>50</option>
              <option value="100" ${isSame(100, topic.point!, "selected='selected'")}>100</option>
            </select>
          </div>
        </div>
      </div>
      <!-- 
      <div class="layui-form-item">
        <label for="L_vercode" class="layui-form-label">人类验证</label>
        <div class="layui-input-inline">
          <input type="text" id="L_vercode" name="vercode" required lay-verify="required" placeholder="请回答后面的问题" autocomplete="off" class="layui-input">
        </div>
        <div class="layui-form-mid">
          <span style="color: #c00;">1+1=?</span>
        </div>
      </div>
       -->
      <div class="layui-form-item">
        <button class="layui-btn" lay-filter="*" type="submit" >保存编辑lay-submit</button>
      </div>
    </form>
  </div>
@ }